package com.ruoyi.fun.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 退款/售后对象 ec_refund
 * 
 * @author ruoyi
 * @date 2025-08-06
 */
public class EcRefund extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 退款ID */
    private Long refundId;

    /** 退款单号 */
    @Excel(name = "退款单号")
    private String refundNo;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 退款类型 */
    @Excel(name = "退款类型")
    private String refundType;

    /** 退款原因 */
    @Excel(name = "退款原因")
    private String refundReason;

    /** 退款金额 */
    @Excel(name = "退款金额")
    private BigDecimal refundAmount;

    /** 退款状态 */
    @Excel(name = "退款状态")
    private String refundStatus;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applyTime;

    /** 处理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date handleTime;

    /** 处理备注 */
    @Excel(name = "处理备注")
    private String handleNote;

    /** 凭证图片，用逗号分隔 */
    @Excel(name = "凭证图片，用逗号分隔")
    private String evidenceImages;

    /** 用户名称（关联查询） */
    private String userName;

    
    /** 组织ID */
    @Excel(name = "组织ID")
    private Long orgId;

    public void setRefundId(Long refundId) 
    {
        this.refundId = refundId;
    }

    public Long getRefundId() 
    {
        return refundId;
    }

    public void setRefundNo(String refundNo) 
    {
        this.refundNo = refundNo;
    }

    public String getRefundNo() 
    {
        return refundNo;
    }

    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setRefundType(String refundType) 
    {
        this.refundType = refundType;
    }

    public String getRefundType() 
    {
        return refundType;
    }

    public void setRefundReason(String refundReason) 
    {
        this.refundReason = refundReason;
    }

    public String getRefundReason() 
    {
        return refundReason;
    }

    public void setRefundAmount(BigDecimal refundAmount) 
    {
        this.refundAmount = refundAmount;
    }

    public BigDecimal getRefundAmount() 
    {
        return refundAmount;
    }

    public void setRefundStatus(String refundStatus) 
    {
        this.refundStatus = refundStatus;
    }

    public String getRefundStatus() 
    {
        return refundStatus;
    }

    public void setApplyTime(Date applyTime) 
    {
        this.applyTime = applyTime;
    }

    public Date getApplyTime() 
    {
        return applyTime;
    }

    public void setHandleTime(Date handleTime) 
    {
        this.handleTime = handleTime;
    }

    public Date getHandleTime() 
    {
        return handleTime;
    }

    public void setHandleNote(String handleNote) 
    {
        this.handleNote = handleNote;
    }

    public String getHandleNote() 
    {
        return handleNote;
    }

    public void setEvidenceImages(String evidenceImages) 
    {
        this.evidenceImages = evidenceImages;
    }

    public String getEvidenceImages() 
    {
        return evidenceImages;
    }

    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    public void setOrgId(Long orgId) 
    {
        this.orgId = orgId;
    }

    public Long getOrgId() 
    {
        return orgId;
    }
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("refundId", getRefundId())
            .append("refundNo", getRefundNo())
            .append("orderNo", getOrderNo())
            .append("userId", getUserId())
            .append("refundType", getRefundType())
            .append("refundReason", getRefundReason())
            .append("refundAmount", getRefundAmount())
            .append("refundStatus", getRefundStatus())
            .append("applyTime", getApplyTime())
            .append("handleTime", getHandleTime())
            .append("handleNote", getHandleNote())
            .append("evidenceImages", getEvidenceImages())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
